package de.unidue.langtech.teaching.pp.example.pipeline;

import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.fit.factory.CollectionReaderFactory;
import org.apache.uima.fit.pipeline.SimplePipeline;


import de.tudarmstadt.ukp.dkpro.core.tokit.BreakIteratorSegmenter;
import de.unidue.langtech.teaching.pp.example.BaselineTwitter;
import de.unidue.langtech.teaching.pp.example.EvaluatorTwitter;
import de.unidue.langtech.teaching.pp.example.KeyWordsComparer;
import de.unidue.langtech.teaching.pp.example.ReaderTwitter;

public class ExtendedPipelineTwitter_List
{
 //first Baseline runs, so you can compare the results
    public static void main(String[] args)
        throws Exception
    {
    	{
            SimplePipeline.runPipeline(
                    CollectionReaderFactory.createReader(
                            ReaderTwitter.class,
                            ReaderTwitter.PARAM_INPUT_FILE, "src/test/resources/Testdaten B.txt"
                    ),
                    AnalysisEngineFactory.createEngineDescription(BaselineTwitter.class),
                    AnalysisEngineFactory.createEngineDescription(EvaluatorTwitter.class)
            );
    	
            System.out.println("\n");
    	
        SimplePipeline.runPipeline(
                CollectionReaderFactory.createReader(
                        ReaderTwitter.class,
                        ReaderTwitter.PARAM_INPUT_FILE, "src/test/resources/Testdaten B.txt"
                ),
                AnalysisEngineFactory.createEngineDescription(BreakIteratorSegmenter.class),
                AnalysisEngineFactory.createEngineDescription(BaselineTwitter.class),
                AnalysisEngineFactory.createEngineDescription(KeyWordsComparer.class),
                AnalysisEngineFactory.createEngineDescription(EvaluatorTwitter.class)
        );
    	}
    }
}
